#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{
    /*time_t t;
    struct tm *pTM;

    time(&t);
    pTM = gmtime(&t);
    printf("hello!\n");
    void *p = malloc(4);
    printf("p is %p\n", p);
    printf("p+20 is %d, now is 16\n", *(int *)(p+20)); 
    *(int *)(p+20) = 16;
    void *q = malloc(16);
    printf("q is %p\n", q);*/

    void *p1 = malloc(4*sizeof(int));
    printf("p1 is %p\n", p1);
    void *p2 = malloc(5*sizeof(int));
    printf("p2 is %p\n", p2);
    void *p3 = malloc(6*sizeof(int));
    printf("p3 is %p\n", p3);
    free(p2);
    void *p4 = malloc(2*sizeof(int));
    printf("p4 is %p\n", p4);
    return 0;
}
